package com.gbcom.autocompile.mail;

import javax.mail.MessagingException;
import javax.mail.internet.AddressException;

/**
 * @author duanxiongwen
 * 
 */
public class MailNotifyTest {

	public static void main(String args[]) {

		try {
			MailNotify.sendSmtpEmail("assertmyself@163.com", "assertmyself",
					"sunday321", "smtp.163.com",
					new String[] { "sunyanzheng@gbcom.com.cn" }, "test",
					"content+ 你是谁 ");
		} catch (AddressException e) {
			e.printStackTrace();
		} catch (MessagingException e) {
			e.printStackTrace();
		}

	}

}
